package teach.shuji.java12.system.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

import java.time.LocalDateTime;

@Data
@TableName("sys_user")
public class User {
    // 用户ID
    int id;

    // 部门ID
    int deptId;

    String userName;    //如果有大写字母，转换成sql语句时，大写字母会变成 _小写字母  如：userName -> user_name

    String nickName;

    String userType;

    String email;

    String phoneNumber;

    char sex;

    String avatar;

    String salt;

    String password;

    char status;

    @TableField("del_flag") //也可以用tablefield指定数据库列名
    char delFlag;

    @TableField("login_ip")
    String loginIp;

    @TableField("login_date")
    LocalDateTime loginDate;

    @TableField("create_by")
    String createBy;

    @TableField("create_time")
    LocalDateTime createTime;

    @TableField("update_by")
    String updateBy;

    @TableField("update_time")
    LocalDateTime updateTime;

    String remark;

    String permissions;
}
